/*
 * DRACOON API
 * REST Web Services for DRACOON<br><br>This page provides an overview of all available and documented DRACOON APIs, which are grouped by tags.<br>Each tag provides a collection of APIs that are intended for a specific area of the DRACOON.<br><br><a title='Developer Information' href='https://developer.dracoon.com'>Developer Information</a>&emsp;&emsp;<a title='Get SDKs on GitHub' href='https://github.com/dracoon'>Get SDKs on GitHub</a><br><br><a title='Terms of service' href='https://www.dracoon.com/terms/general-terms-and-conditions/'>Terms of service</a>
 *
 * OpenAPI spec version: 4.45.1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package ch.cyberduck.core.sds.io.swagger.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * Contains QR code URL and OTP URI for TOTP setup
 */
@Schema(description = "Contains QR code URL and OTP URI for TOTP setup")

public class TotpSetupResponse {
  @JsonProperty("id")
  private Long id = null;

  @JsonProperty("qrCode")
  private String qrCode = null;

  @JsonProperty("otpUri")
  private String otpUri = null;

  @JsonProperty("secret")
  private String secret = null;

  public TotpSetupResponse id(Long id) {
    this.id = id;
    return this;
  }

   /**
   * ID
   * @return id
  **/
  @Schema(required = true, description = "ID")
  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public TotpSetupResponse qrCode(String qrCode) {
    this.qrCode = qrCode;
    return this;
  }

   /**
   * TOTP data URL (QR Code)
   * @return qrCode
  **/
  @Schema(required = true, description = "TOTP data URL (QR Code)")
  public String getQrCode() {
    return qrCode;
  }

  public void setQrCode(String qrCode) {
    this.qrCode = qrCode;
  }

  public TotpSetupResponse otpUri(String otpUri) {
    this.otpUri = otpUri;
    return this;
  }

   /**
   * URI containing secret key, issuer and account information
   * @return otpUri
  **/
  @Schema(required = true, description = "URI containing secret key, issuer and account information")
  public String getOtpUri() {
    return otpUri;
  }

  public void setOtpUri(String otpUri) {
    this.otpUri = otpUri;
  }

  public TotpSetupResponse secret(String secret) {
    this.secret = secret;
    return this;
  }

   /**
   * Secret key used for setup of TOTP authentication
   * @return secret
  **/
  @Schema(required = true, description = "Secret key used for setup of TOTP authentication")
  public String getSecret() {
    return secret;
  }

  public void setSecret(String secret) {
    this.secret = secret;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TotpSetupResponse totpSetupResponse = (TotpSetupResponse) o;
    return Objects.equals(this.id, totpSetupResponse.id) &&
        Objects.equals(this.qrCode, totpSetupResponse.qrCode) &&
        Objects.equals(this.otpUri, totpSetupResponse.otpUri) &&
        Objects.equals(this.secret, totpSetupResponse.secret);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, qrCode, otpUri, secret);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TotpSetupResponse {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    qrCode: ").append(toIndentedString(qrCode)).append("\n");
    sb.append("    otpUri: ").append(toIndentedString(otpUri)).append("\n");
    sb.append("    secret: ").append(toIndentedString(secret)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
